import request from '@/utils/request'
import store from '@/store'
export * from './ArticleDetail/index'
export * from './ChannelEdit/index'
export * from './comment/index'
export * from './user/index' // 相当于this.$store了 - 拿到store对象
export * from './other/index'
// 更新 - token
export const refreshTokenAPI = () => request({
  url: '/v1_0/authorizations',
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${store.state.refresh_token}`
  }
})
